package decorator;

public abstract class Decorator implements Car {
private Car car;
public Decorator(Car car){
	this.car=car;
}
	@Override
	public void update(String str) {
		if (car!=null){
			car.update(str);
		}
		
	}

}
